const webpack = require("webpack");
module.exports = {
	publicPath: '/',
	productionSourceMap: false,
	devServer: {
		// host: "192.168.0.172",
		port: 8001, // 端口号
		proxy: {
			'/request': {
				target: 'https://www.aizhaopin.pro/prod-api/',
				changeOrigin: true,
				ws: true,
				pathRewrite: {
					'^/request': ''
				}
			},
			
		}
	},
	chainWebpack(config) {
		// 在chainWebpack中添加下面的代码
		config.entry('main').add('babel-polyfill') // main是入口js文件
	},
	configureWebpack: {
		plugins: [
			new webpack.ProvidePlugin({
				$: "jquery",
				jQuery: "jquery",
				"windows.jQuery": "jquery"
			})
		]

	}
}